* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.iconfont {
    font-size: 20px;
}

.menu {
    position: absolute;
    width: 60px;
    height: 600px;
    background-color: #111727;
    z-index: 2;
    top: 8%;
    margin: auto;
    transition: 0.3s ease 0.15s;
    font-family: sans-serif;
}

.menu a {
    text-decoration: none;
}

.menu .actionsBar {
    width: 100%;
    height: 10%;
    padding: 0.5rem;
    overflow: hidden;
}

.menu .actionsBar div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 0.5rem;
    transition: 0.3s ease;
}

.menu .actionsBar div button {
    background-color: transparent;
    outline: none;
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    width: 45px;
    height: 45px;
    transition: 0.3s ease;
    font-size: 1rem;
}

.menu .actionsBar div button:hover {
    background-color: #364152;
}

.menu .actionsBar div h3 {
    width: calc(100% - 45px);
    text-align: center;
}

.menu .optionsBar {
    overflow: hidden;
    display: flex;
    width: 100%;
    height: 60%;
    padding: 0 0.5rem;
    align-items: center;
    flex-direction: column;
}

.menu .optionsBar .menuItem {
    width: 100%;
    height: 45px;
    margin: 0.3rem;
}

.menu .optionsBar .menuItem .menuOption {
    font-size: 1rem;
    outline: none;
    border: none;
    background-color: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 0.5rem;
    transition: 0.3s ease;
}

.menu .optionsBar .menuItem .menuOption:hover {
    background-color: #364152;
}

.menu .optionsBar .menuItem .menuOption i {
    width: 45px;
    text-align: center;
    color: #fff;
}

.menu .optionsBar .menuItem .menuOption h5 {
    text-align: left;
    width: calc(100% - 45px);
}

.menuText {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(-250px);
    opacity: 0;
    transition: transform 0.3s ease 0.1s;
}

.menu .about {
    width: 100%;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    flex-direction: column;
    font-family: sans-serif;
    opacity: 0;
    white-space: nowrap;
    transition: 0.3s ease 0.15s;
}

.menu.open {
    width: 240px;
}

.menuText.open2 {
    opacity: 1;
    transform: translateX(0);
}

.menu .menuBreak {
    width: 100%;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu .menuBreak hr {
    width: 70%;
    height: 3px;
    background-color: #fff;
    border: none;
    border-radius: 5px;
}

.menu .themeBar {
    overflow: hidden;
    width: 100%;
    height: 10%;
    padding: 0.5rem;
}

.menu .themeBar div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 0.5rem;
    transition: 0.3s ease;
}

.menu .themeBar div button {
    background-color: transparent;
    outline: none;
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    width: 100%;
    height: 45px;
    transition: 0.3s ease;
    font-size: 1rem;
}

.menu .themeBar div button:hover {
    background-color: #364152;
}

.menu .menuUser {
    width: 100%;
    height: 10%;
}

.menu .menuUser a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    padding: 0.5rem;
    position: relative;
}

.menu .menuUser a div {
    width: 45px;
    height: 45px;
    position: relative;
    border-radius: 0.5rem;
}

.menu .menuUser a div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.menu .menuUser a .Username {
    width: calc(70% - 45px);
}

.menu .menuUser a p {
    width: calc(30% - 45px);
}

.menu .menuUser a:hover p {
    animation: animArrow 0.3s ease 2;
}

@keyframes animArrow {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}
.menu .menuUser .userInfo {
    position: absolute;
    width: 20rem;
    height: 18rem;
    opacity: 0;
    pointer-events: none;
    top: 34%;
    left: 1.5rem;
    transition: 0.3s ease;
    transform: scale(0);
    transform-origin: bottom left;
}

.menu .menuUser:hover .userInfo {
    pointer-events: all;
    opacity: 1;
    transform: scale(1);
}



.content, .menu ,.menu.open{
    transition: margin-left 0.3s ease, width 0.3s ease; /* 平滑过渡效果 */
}
/* 内容区域样式 */
.content {
    display: flex;
    flex-direction: column; /* 确保内容垂直排列 */
    width: calc(100% - 250px); /* 初始宽度减去侧边栏宽度 */
    transition: width 0.3s ease; /* 平滑过渡效果 */
    margin-left: 250px; /* 初始侧边距等于侧边栏宽度 */
    overflow-x: auto; /* 如果内容超出宽度，允许横向滚动 */
}

/* 表格容器样式 */
.table-container {
    width: 100%; /* 表格容器宽度为100% */
    overflow-x: auto; /* 如果内容超出，允许横向滚动 */
    transition: width 0.3s ease; /* 平滑过渡效果 */
}

/* 表格本身样式 */
.table {
    width: 100%; /* 表格宽度为100% */
    table-layout: auto; /* 表格布局自动 */
    white-space: nowrap; /* 禁止文本换行 */
}

/* 表头和表尾样式 */
th, td {
    padding: 8px; /* 单元格内边距 */
    text-align: left; /* 文本左对齐 */
    border: 1px solid #ddd; /* 单元格边框 */
}

/* 当侧边栏收缩时的样式 */
.content.collapsed {
    width: calc(100% - 65px); /* 宽度减去收缩后的侧边栏宽度 */
    margin-left: 65px; /* 边距等于收缩后的侧边栏宽度 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content {
        width: 100%; /* 在小屏幕上，内容宽度为100% */
        margin-left: 0; /* 移除左边距 */
    }
    .content.collapsed {
        width: 100%; /* 保持100%宽度 */
    }
}
